package com.lagou.sqlSession;

import java.util.List;

/**
 * @author liuyj
 * @Title: SqlSession
 * @create 2020-05-28 11:56
 * @ProjectName lagou_project
 * @Description: TODO
 */
public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid,Object... params) throws Exception;

    //为dao层接口查询生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);

    //增加单个
   public int insertOne(String statementid,Object... params)throws Exception;
    public <T> T getInsertOneMapper(Class<?> mapperClass);
    //删除单个
    public int deleteOne(String statementid,Object... params)throws Exception;
    public <T> T getDeleteOneMapper(Class<?> mapperClass);
    //修改单个
    public int updateOne(String statementid,Object... params)throws Exception;
    public <T> T getUpdateOneMapper(Class<?> mapperClass);


}
